/*
 * lab01.fx
 *
 * Created on 16.03.2010, 21:25:48
 */

package javafx191labs.aantonov.lab01;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.*;
import javafx.scene.paint.Color;
import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;


/**
 * @author Root
 */



Stage {

    title: "Application title"
    scene: Scene {
        width: 250
        height: 400

        content: [







Arc {
centerX: 110, centerY: 106
	radiusX: 75, radiusY: 75
	startAngle: 357, length: 200
	type: ArcType.OPEN
	fill: Color.BLACK


}


Circle {
	centerX: 110, centerY: 106
	radius: 73
	fill: Color.WHITE

       }



//end_top_of_head


//hairs//
Path {
    elements: [
        MoveTo { x: 140  y: 39},
        ArcTo { x: 80  y: 55  radiusX: 40  radiusY: 90 } ]
}
Path {
    elements: [
        MoveTo { x: 120  y: 33},
        ArcTo { x: 60  y: 55  radiusX: 40  radiusY: 90 } ]

}




//end_hairs//

//right_eye

Arc {
	centerX: 180, centerY: 155
	radiusX: 36, radiusY: 36
	startAngle: 280, length: 240
	type: ArcType.OPEN
	fill: Color.BLACK
}



Circle {
        centerX: 180, centerY: 155
	radius: 33
	fill: RadialGradient {
	     centerX: 165,
             centerY: 137,
             radius: 12,
             proportional: false
             stops: [
                    Stop {offset: 0.0 color: Color.WHITE},
                    Stop {offset: 1.0 color : Color.GREEN}


	]
}







}

Rectangle {
	x: 153, y: 174
	width: 30, height: 15
	fill: Color.WHITE
}

Circle {
        centerX: 180, centerY: 155
	radius: 5
	fill: Color.BLACK

}

//end_right_eye


//left_eye
Circle {
	centerX: 120, centerY: 157
	radius: 36
	fill: Color.BLACK

}


Circle {
	centerX: 120, centerY: 157
	radius: 33
		fill: RadialGradient {
	     centerX: 105,
             centerY: 137,
             radius: 12,
             proportional: false
             stops: [
                    Stop {offset: 0.0 color: Color.WHITE},
                    Stop {offset: 1.0 color : Color.GREEN}


	]
        }
}
Circle {
	centerX: 120, centerY: 157
	radius: 5
	fill: Color.BLACK

}
//end_left_eye

//neck_1
Path {
    elements: [
        MoveTo { x: 45 y: 290 },
        QuadCurveTo {
            controlX: 80.0  controlY: 260.0
            x: 35.0  y: 110.0

        }
                MoveTo { x: 153 y: 290 },
        QuadCurveTo {
            controlX: 147.0  controlY: 320.0
            x: 153.0  y: 330.0

        }
    ]
}

//end_neck_1
//nose
Arc {
	centerX: 181, centerY: 185
	radiusX: 15, radiusY: 15
	startAngle: 270, length: 180
	type: ArcType.OPEN
	fill: Color.BLACK
}
Arc {
	centerX: 181, centerY: 185
	radiusX: 12, radiusY: 12
	startAngle: 270, length: 180
	type: ArcType.OPEN
	fill: Color.WHITE
}

Line {
	startX: 153, startY: 173
	endX: 181, endY: 171
	strokeWidth: 3
	stroke: Color.BLACK
}

//end_nose

//mouth

Arc {
	centerX: 130, centerY: 251
	radiusX: 47, radiusY: 47
	startAngle: 100, length: 236
        type: ArcType.OPEN
	fill: Color.BLACK
}

Arc {
	centerX: 131, centerY: 250
	radiusX: 45, radiusY: 45
	startAngle: 100, length: 236
	type: ArcType.OPEN
	fill: Color.WHITE
}

Arc {
	centerX: 176, centerY: 260
	radiusX: 10, radiusY:10
	startAngle: 245, length: 155
	type: ArcType.OPEN
	fill: Color.BLACK
}

Arc {
	centerX: 176, centerY: 260
	radiusX: 7, radiusY:7
        startAngle: 245, length: 155
	type: ArcType.OPEN
	fill: Color.WHITE
}

//end_mouth

//smile
Path {
    elements: [
        MoveTo { x: 215 y: 243 },
        QuadCurveTo {
            controlX: 160.0  controlY: 270.0
            x: 106.0  y: 250.0

        }

        MoveTo { x: 215 y: 233 },
        QuadCurveTo {
            controlX: 219.0  controlY: 238.0
            x: 215  y: 243

        }
        MoveTo { x: 193 y: 193 },
        QuadCurveTo {
            controlX: 212.0  controlY: 203.0
            x: 215  y: 233

        }

        MoveTo { x: 120 y: 205 },
        QuadCurveTo {
            controlX: 140  controlY: 197
            x: 180  y: 198

        }
        //near right eye

        MoveTo { x: 180 y: 108 },
        QuadCurveTo {
            controlX: 190  controlY: 110
            x: 195  y: 123

        }
        //end near right eye

    ]
}
Line {
	startX: 110, startY: 245
	endX: 104, endY:255
	strokeWidth: 3
	stroke: Color.BLACK

}


//end_smile

//EAR
Arc {
	centerX: 61, centerY: 206
	radiusX: 17, radiusY: 17
	startAngle: 45, length: 270
	type: ArcType.OPEN
	fill: Color.BLACK
}
Circle {
	centerX: 61, centerY: 206

	radius: 15
	fill: Color.WHITE

}
Arc {
	centerX: 63, centerY: 209
	radiusX: 9, radiusY: 9
	startAngle: 20, length: 180
	type: ArcType.OPEN
	fill: Color.BLACK
}
Arc {
	centerX: 64, centerY: 209
	radiusX: 7, radiusY: 7
	startAngle: 20, length: 180
	type: ArcType.OPEN
	fill: Color.WHITE
}
Line {
	startX: 53, startY: 202
	endX: 58, endY: 202
	strokeWidth: 2
	stroke: Color.BLACK
}


Line {
	startX: 40, startY: 288
	endX: 158, endY: 333
	strokeWidth: 2
	stroke: Color.BLACK
}
//end_ear


Text {
	font : Font {
		size: 54
	}
	x: 30, y: 175
	content: "M"


}






        ]


    }


}